{% extends 'base.html' %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
 <div class="container">
        <div class="row">
            <div class="col-xs-6 col-md-offset-3">
        <form method="POST">
            {{ form.hidden_tag() }}
            <div class="form-group">
                {{ form.username.label }}:{{ form.username(class="form-control", placeholder="用户名", value=info.name) }}
            </div>
            <div class="form-group">
                {{ form.realname.label }}:{{ form.realname(class="form-control", placeholder="真实姓名", value=info.realname) }}
            </div>
            <div class="form-group">
               {{ form.oldpassword.label }}:{{ form.oldpassword(class="form-control", placeholder="旧密码") }}
            </div>
            <div class="form-group">
               {{ form.newpassword.label }}:{{ form.newpassword(class="form-control",placeholder="新密码") }}
            </div>
			<div class="form-group">
               {{ form.password2.label }}:{{ form.password2(class="form-control",placeholder="确认密码") }}
            </div>
			
            <div class="form-group">
                {{ form.submit(class="btn btn-primary") }}
            </div>

        </form>
			</div>
        </div>
    </div>
       
{% endblock %}